

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-21
 * Time: 12:52
 */

package Bag1;
//Bag1包中
public class Parent {
    public int publicField = 1;
    protected int protectedField = 2;
    int defaultField = 3; // 默认访问权限
    private int privateField = 4;

    public int getPrivateField() {
        return privateField;
    }
}
